xxxxxxxxxxmodule teapo.docs2 {​ /** * Add your handlers here */ export module types {​ /** * Default type loading. * Other handlers should conform to the same signature, and be on the child modules, like so: * module teapo.docs.types.text { function load(...); } */ export function load(path: string, storage: PeristentState): DocHandler { return null; // text.load(storage); } }​ export interface DocHandler {​ open(): HTMLElement; }​ export interface PeristentState { content: ko.Observable<string>; state: ko.Observable<any>; }​}